package com.qf.drop.task;

import com.qf.drop.service.DropOrderService;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author zdl
 * @date 2025/4/3
 */
@Component
public class OrderTask {
    @Resource
    private DropOrderService dropOrderService;

    @Scheduled(cron = "0/5 * * * * ?")
    @Async
    public void dropOrderTask() {
        // 暂时省略分布式
        dropOrderService.dropOrderTask();
    }
}
